#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright [Gtlions Lai].
# Create Date:
# Update Date:
"""summarization ahout this script.

detail ahout this script

   Class(): summarization about Class
   ...
   function(): summarization about function
   ...
"""
__authors__ = '"Gtlions Lai" <gtlions.l@qq.com>'

import sys
from PyQt4 import QtGui, QtCore


class Main(QtGui.QWorkspace):
    def __init__(self, parent=None):
        QtGui.QWorkspace.__init__(self)
        workspace = QtGui.QWorkspace(self)
        workspace.setWindowTitle("Simple Workspace Example")
        for i in range(5):
            textEdit = QtGui.QTextEdit()
            textEdit.setPlainText("PyQt4 "*10)
            textEdit.setWindowTitle("Document %i" % i)
            workspace.addWindow(textEdit)
        workspace.maximumSize()
if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    main = Main()
    main.show()
    sys.exit(app.exec_())